#pragma once

class CCommon
{
public:
	CCommon(void);
public:
	~CCommon(void);
	long WriteVariantSafeArray(const char* lpBuffer, long nCount, VARIANT& var);
	long WriteVariantSafeArray(void* lpBuffer, long nCount, UINT nTypeSize, VARENUM vtType, VARIANT& var);
	long ReadVariantSafeArray(VARIANT* var, char** lpBuffer);
	static void SplitPacketData(const char* lpData, int nLength, int nPacketSize, std::vector<SAFEDATABUFFER>& listPacketData);
};
